import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入样式
import 'vant/lib/index.less'

// 导入ArticleItem组件
import ArticleItem from './components/ArticleItem.vue'

// 1.完整导入
// 导入后，可以随便使用vant的组件
// import Vant from 'vant'
// import 'vant/lib/index.css'
// Vue.use(Vant)

// 2.自动按需导入
import { NavBar, Form, Field, Button, Toast, Tabbar, TabbarItem, Icon, Cell, CellGroup, List, Grid, GridItem } from 'vant'

Vue.use(List)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Icon)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Button)
Vue.use(Toast)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.component('ArticleItem', ArticleItem)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
